package FIT::Document::Transformer::AddSummaryTable;

use FIT::Class;
use FIT::Document::Transformer;
use FIT::Document::Parser::Twig;

extends 'FIT::Document::Transformer::Base';

sub _transform {
    my $element = shift;
    my $body = $element->document_body;
    my $table = XML::Twig::Elt->new('table');
    $table->set_inner_xml('<tbody><tr><td><b>FIT.Summary</b></td></tr></tbody>');
    $table->paste(last_child => $body);
}
